Turn off Fast Startup at Settings > System > Power & Sleep > Additional Power Settings > Choose what Power buttons do > Change Settings Currently Unavailable.
This article takes you through 4 less complicated ways you can fix a Windows 10 PC that randomly shuts down. Check the Computer for... · Turn off Fast Startup · Update Outdated Drivers and...